import request from "@/utils/request";

//商品分类列表
export function goodsSortList(data) {
  return request({
    url: "/inquiry/categoryList",
    method: "post",
    data
  });
}
// 商品分组列表
export function goodsGroupList(data) {
  return request({
    url: "/inquiry/goodsGroupList",
    method: "post",
    data
  });
}

// 物料厂家列表
export function materialBrandList(data) {
  return request({
    url: "/inquiry/materialBrandList",
    method: "post",
    data
  });
}

// 新增商品分组列表
export function goodsGroupEdit(data) {
  return request({
    url: "/inquiry/goodsGroupEdit",
    method: "post",
    data
  });
}

// 商品物料列表

export function getMaterialList(data) {
  return request({
    url: "/inquiry/materialList",
    method: "post",
    data
  });
}

// 品名列表
export function getGoodsList(data) {
  return request({
    url: "/inquiry/goodsList",
    method: "post",
    data
  });
}

// 牌号列表
export function getGoodsSnList(data) {
  return request({
    url: "/inquiry/goodsSnList",
    method: "post",
    data
  });
}

// 牌号编辑
export function materialEdit(data) {
  return request({
    url: "/inquiry/materialEdit",
    method: "post",
    data
  });
}

// 供方公司列表
export function getCustomerCompany(data) {
  return request({
    url: "/customer/company/data",
    method: "post",
    data
  });
}

// 商品物料分类列表
export function getMCategoryList(data) {
  return request({
    url: "/inquiry/materialCategoryList",
    method: "post",
    data
  });
}

// 商品物料批量设置
export function materialBatchEdit(data) {
  return request({
    url: "/inquiry/materialBatchEdit",
    method: "post",
    data
  });
}

//拉取SAP商品
export function importSAPGoods(data) {
  return request({
    url: "/inquiry/importSAPGoods",
    method: "post",
    data
  });
}

//拉取SAP商品
export function gxGoodsSnList(data) {
  return request({
    url: "/inquiry/gxGoodsSnList",
    method: "post",
    data
  });
}


// 产品线团队列表
export function getGoodsLineListAPI(data){
  return request({
    url:'/inquiry/goodsLineList',
    method:'post',
    data
  })
}
// 新增/编辑产品线团队
export function editGoodsLineAPI(data){
  return request({
    url:'/inquiry/editGoodsLine',
    method:'post',
    data
  })
}
 // 删除产品线
 export function delGoodsLineAPI(data){
  return request({
    url:'/inquiry/delGoodsLine',
    method:'post',
    data
  })
}

//成交库存明细表
export function goodsStockOrderLog(data) {
  return request({
    url: "/inquiry/goodsStockOrderLog",
    method: "post",
    data
  });
}


//库存变化明细表
export function goodsStockOperateLog(data) {
  return request({
    url: "/inquiry/goodsStockOperateLog",
    method: "post",
    data
  });
}

//可用库存报表
export function goodsStockOperateReport(data) {
  return request({
    url: "/inquiry/goodsStockOperateReport",
    method: "post",
    data
  });
}


//SAP商品列表
export function sapGoodsList(data) {
  return request({
    url: "/inquiry/sapGoodsList",
    method: "post",
    data
  });

}

//商品竞争力与推荐值列表
export function goodsScoreList(data) {
  return request({
    url: "/inquiry/goodsScoreList",
    method: "post",
    data
  });

}


//产品竞争力与推荐值采购编辑
export function purchaseEditScore(data) {
  return request({
    url: "/inquiry/purchaseEditScore",
    method: "post",
    data
  });
}

//产品竞争力与推荐值销售编辑
export function saleEditScore(data) {
  return request({
    url: "/inquiry/saleEditScore",
    method: "post",
    data
  });
}

//产品竞争力与推荐值图表
export function scoreListByGoods(data) {
  return request({
    url: "/inquiry/scoreListByGoods",
    method: "post",
    data
  });
}

//获取物料的分类树
export function materialClassTree(data) {
  return request({
    url: "/inquiry/materialClassTree",
    method: "post",
    data
  });
}

//获取物料的厂家
export function getBrandList(data) {
  return request({
    url: "/inquiry/getBrandList",
    method: "post",
    data
  });
}

//新增/编辑厂家信息
export function saveBrand(data) {
  return request({
    url: "/inquiry/saveBrand",
    method: "post",
    data
  });
}


//新增/编辑产品类别
export function saveCategory(data) {
  return request({
    url: "/inquiry/saveCategory",
    method: "post",
    data
  });
}

//同步商品
export function syncMaterialClass(data) {
  return request({
    url: "/inquiry/syncMaterialClass",
    method: "post",
    data
  });
}

//往期采购报价列表
export function beforeInquiryPriceList(data) {
  return request({
    url: "/inquiry/beforeInquiryPriceList",
    method: "post",
    data
  });
}

//获取商品竞争力
export function getGoodsScore(data) {
  return request({
    url: "/inquiry/getGoodsScore",
    method: "post",
    data
  });
}

//商品禁用启用
export function editMaterialEnable(data) {
  return request({
    url: "/inquiry/editMaterialEnable",
    method: "post",
    data
  });
}

//询价商品禁用启用
export function setEnableOrder(data) {
  return request({
    url: "/inquiry/setEnableOrder",
    method: "post",
    data
  });
}

//货源新增/编辑
export function purchaseTargetSet(data) {
  return request({
    url: "/target/purchaseTargetSet",
    method: "post",
    data
  });
}

//货源列表
export function purchaseTargetList(data) {
  return request({
    url: "/target/purchaseTargetList",
    method: "post",
    data
  });
}

// 销售目标设置
export function saleTargetSet(data) {
  return request({
    url: "/target/saleTargetSet",
    method: "post",
    data
  });
}

// 销售目标列表
export function saleTargetList(data) {
  return request({
    url: "/target/saleTargetList",
    method: "post",
    data
  });
}

// 销售目标明细列表
export function saleTargetDetailList(data) {
  return request({
    url: "/target/saleTargetDetailList",
    method: "post",
    data
  });
}

// 销售目标详情
export function saleTargetDetail(data) {
  return request({
    url: "/target/saleTargetDetail",
    method: "post",
    data
  });
}


// 目标复核列表
export function targetCheckList(data) {
  return request({
    url: "/target/targetCheckList",
    method: "post",
    data
  });
}


// 目标复核
export function targetCheck(data) {
  return request({
    url: "/target/targetCheck",
    method: "post",
    data
  });
}

// 销售目标复盘
export function saleTargetCheck(data) {
  return request({
    url: "/target/saleTargetCheck",
    method: "post",
    data
  });
}

// 销售目标复盘
export function targetAnalysisList(data) {
  return request({
    url: "/target/targetAnalysisList",
    method: "post",
    data
  });
}

// 销售目标图表
export function saleTargetAnalysis(data) {
  return request({
    url: "/target/saleTargetAnalysis",
    method: "post",
    data
  });
}

// 更新实际销售数量及跟进客户数
export function syncSaleActualNum(data) {
  return request({
    url: "/target/syncSaleActualNum",
    method: "post",
    data
  });
}


// 牌号相关的采购货源信息
export function purchaseTargetData(data) {
  return request({
    url: "/target/purchaseTargetData",
    method: "post",
    data
  });
}
